/* 复杂项目模块统一管理可以使用 */
// const files = import.meta.glob('./*.js', { eager: true });
// let api = {};
// Object.keys(files).forEach((key) => {
// 	api = {
// 		...api,
// 		// [key.replace(/(.*\/)*([^.]+).*/gi, '$2')]: files[key].default,
// 		...files[key].default
// 	};
// });

// export default api;

import request from '@/ulm/request';

export default {
	/**
	 * 登录
	 */
	newscategory: (data) =>
		request({
			url: '/api/news/category',
			method: 'POST',
			data,
			custom: {
				showSuccess: false,
				showError: false
			},
		}),

	category: (data) =>
		request({
			url: '/api/news/list',
			method: 'POST',
			data,
			custom: {
				showSuccess: false,
				showError: false
			},
		}),
	detail: (data) =>
		request({
			url: '/api/news/detail',
			method: 'POST',
			data,
			custom: {
				showSuccess: false,
				showError: false
			},
		}),


}